package uk.co.biggroup.lotto.syndicate.dataset;

public class DataLineFactory {

	public static DataLine getDataLine(String loteryType, String numbers,
			String raffle, String lucky) {
		if (loteryType.equalsIgnoreCase("Lotto")) {
			DataLine data = (DataLine) new DataLineLotto(numbers, raffle, lucky);
			return data;
		} else if (loteryType.equalsIgnoreCase("EuroMillions")) {
			DataLine data = (DataLine) new DataLineEuroMillions(numbers, raffle, lucky);
			return data;
		} else if (loteryType.equalsIgnoreCase("HealthLottery")) {
			DataLine data = (DataLine) new DataLineHealthLottery(numbers, raffle, lucky);
			return data;
		} else {
			DataLine data = (DataLine) new DataLineLotto(numbers, raffle, lucky);
			return data;
		}
	}

}
